import { ColorEnum, CommonProps, SizeEnum } from '../common';

export interface ProgressOptions extends CommonProps {
  /**
   * 进度条百分比
   */
  percentage?: number | string;
  /**
   * 指示
   */
  indicating?: boolean;
  /**
   * 尺寸大小
   */
  size?: SizeEnum;
  /**
   * 颜色
   */
  color?: ColorEnum;
  /**
   * 多条
   */
  multiple?: boolean;
  /**
   * 激活
   */
  active?: boolean;
  /**
   * 成功
   */
  success?: boolean;
  /**
   * 警告
   */
  warning?: boolean;
  /**
   * 错误
   */
  error?: boolean;
  /**
   * 禁用
   */
  disabled?: boolean;
  /**
   * 右对齐
   */
  right?: boolean;
  /**
   * 深色背景
   */
  inverted?: boolean;
  /**
   * 附属
   */
  attached?: 'top' | 'bottom';
  /**
   * 不确定
   */
  indeterminate?:
    | boolean
    | 'filling'
    | 'sliding'
    | 'swinging'
    | 'slow'
    | 'fast'
    | 'slow filling'
    | 'slow sliding'
    | 'slow swinging'
    | 'fast filling'
    | 'fast sliding'
    | 'fast swinging';
}

export interface ProgressBarOptions extends CommonProps {
  /**
   * 颜色
   */
  color?: ColorEnum;
  /**
   * 居中
   */
  centered?: boolean;
  /**
   * 进度条上的内容
   */
  progress?: string;
}

export type ProgressLabelOptions = CommonProps;
